# 从路径中提取文件夹名字
get_filename_component(FOLDER_NAME "${CMAKE_CURRENT_SOURCE_DIR}" NAME)

# core 源文件描述
file(GLOB SCOURCE
    ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c
)

# 构建项目
add_library(${FOLDER_NAME}
    ${SCOURCE}
)

# target_compile_definitions(${FOLDER_NAME} PUBLIC -D)
target_include_directories(${FOLDER_NAME} PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/include
)
# target_link_libraries(${FOLDER_NAME} PUBLIC )

# 添加子目录
# add_subdirectory()